﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Domain.Entitys.Inv
{
    /// <summary>
    /// 其他入库明细表（inv_othwrproddtl）
    /// </summary>
    public class Inv_othwrproddtl
    {
        [Key]
        public int othwrproddtl_id { get; set; }

        /// <summary>
        /// 入库单ID
        /// </summary>

        public int Othwr_id { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Pro_name { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string Pro_code { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string Pro_brand { get; set; }

        /// <summary>
        /// 单位ID（单位信息关联）
        /// </summary>
        public string unitmeas_id { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public decimal Othwrproddtl_numder { get; set; }
        /// <summary>
        /// 位入库数量
        /// </summary>
        public decimal Inventory_numder { get; set; }

        ///// <summary>
        ///// 总数量
        ///// </summary>
        //public decimal Othwrproddtl_totNum { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Pro_model { get; set; }
        /// <summary>
        /// 入库库位编号
        /// </summary>
        public string location_code { get; set; }
        /// <summary>
        /// 入库库位名称
        /// </summary>
        public string location_name { get; set; } 

        public DateTime? Othwrproddtl_time { get; set; }


        public string Othwrproddtl_yuan { get; set; }


        public decimal pro_cost_price { get;set; }


        public decimal pro_sale_price { get; set; }

        /// <summary>
        /// 关联单号
        /// </summary>
        public string stock_entry_no { get; set; }

        public string Vendor_code { get; set; }//供应商编码

        public string Vendor_name { get; set; } //供应商昵称




        /// <summary>
        /// 导航属性（指向主表）
        /// </summary>
        [JsonIgnore]
        public Inv_othwr Main { get; set; }
    }
}
